Skip to content

docs(guide): named ranges in formulas + fix limitations pointer (HF-222)#1695

Merged
sequba merged 2 commits into
developfrom
hf-222-named-ranges
Jun 25, 2026
Merged

docs(guide): named ranges in formulas + fix limitations pointer (HF-222)#1695
sequba merged 2 commits into
developfrom
hf-222-named-ranges

Conversation

@marcin-kordas-hoc

@marcin-kordas-hoc marcin-kordas-hoc commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Documents how a range-valued named expression behaves in a formula and fixes the inaccurate limitations bullet (HF-222).

  • named-expressions.md: new Using named ranges in formulas section — behavior as function argument (full range), operator operand (implicit intersection → single cell; array mode → #VALUE!), and bare reference (#VALUE!).
  • known-limitations.md: replaces the inaccurate top-level named-ranges bullet with a neutral pointer to that section.

Paired characterization tests: hyperformula-tests branch hf-222-named-ranges (matching branch for fetch-tests). Docs-only; no CHANGELOG.


Note

Low Risk
Documentation-only changes with no runtime or API impact.

Overview
Documents how range-valued named expressions behave in formulas and corrects a misleading limitations note.

named-expressions.md adds Using named ranges in formulas: full range when passed to functions; implicit intersection to one cell (or #VALUE!) when used with operators; #VALUE! for a bare range reference. It also contrasts default evaluation with useArrayArithmetic: true (e.g. =SUM(myRange + 1) vs element-wise sum).

known-limitations.md drops the inaccurate claim that named ranges can’t be used in comparisons like =IF(firstRange>secondRange, …) and points readers to the new section instead.

Reviewed by Cursor Bugbot for commit 2844367. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for hyperformula-dev-docs ready!

Name Link
🔨 Latest commit 2844367
🔍 Latest deploy log https://app.netlify.com/projects/hyperformula-dev-docs/deploys/6a3bc3905ae1f40008eb7f38
😎 Deploy Preview https://deploy-preview-1695--hyperformula-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…ter (HF-222)

Adds a 'Using named ranges in formulas' section to named-expressions.md (behavior as function arg / operator operand / bare ref, incl. array mode) and replaces the inaccurate top-level named-ranges bullet in known-limitations.md with a neutral pointer. Docs-only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

Performance comparison of head (2844367) vs base (72205bd)

                                     testName |   base |   head | change
------------------------------------------------------------------------
                                      Sheet A | 488.53 |    504 | +3.17%
                                      Sheet B | 155.52 | 161.74 | +4.00%
                                      Sheet T | 138.82 | 142.99 | +3.00%
                                Column ranges | 467.18 | 470.18 | +0.64%
Sheet A:  change value, add/remove row/column |  14.62 |   15.9 | +8.76%
 Sheet B: change value, add/remove row/column | 128.68 | 137.01 | +6.47%
                   Column ranges - add column | 145.07 | 152.02 | +4.79%
                Column ranges - without batch | 440.59 | 455.87 | +3.47%
                        Column ranges - batch | 113.47 | 117.02 | +3.13%

@marcin-kordas-hoc marcin-kordas-hoc requested a review from sequba June 23, 2026 07:52
Comment thread docs/guide/named-expressions.md Outdated
@qunabu

qunabu commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

…ew (HF-222)

The previous wording stated unconditionally that SUM(myRange+1) receives a
single reduced value. The unit tests (PR #15) and the engine confirm it is
element-wise in array mode (SUM(2,3,4,5,6)=20). Scope the reduction claim to
default mode and document the array-mode element-wise behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@marcin-kordas-hoc marcin-kordas-hoc requested a review from sequba June 24, 2026 11:48
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.16%. Comparing base (72205bd) to head (2844367).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1695   +/-   ##
========================================
  Coverage    97.16%   97.16%           
========================================
  Files          176      176           
  Lines        15322    15322           
  Branches      3387     3387           
========================================
  Hits         14887    14887           
  Misses         435      435           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sequba sequba merged commit 8bfa558 into develop Jun 25, 2026
36 checks passed
@sequba sequba deleted the hf-222-named-ranges branch June 25, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants